package cc.lpz.backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

@TableName("role")
public class Role {
    private int id;
    private String name;
    @TableField(exist = false)
    private List<User> users;

    @TableField(exist = false)
    private List<UserRole> userRoles;

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", users=" + users +
                '}';
    }
}
